export default {
  state: {
    username: 'Tom'
  },
  mutations: {
    setuname (state, payload) {
      state.username = payload
    }
  },
  actions: {
    setuname (context, payload) {
      setTimeout(() => {
        context.commit('setuname', payload)
      }, 2000)
    }
  },
  getters: {
    info (state) {
      return state.username + '新增'
    }
  }
}
